package com.example.consult.controller;

import com.example.consult.service.IntroduceService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.ResponseBody;

@RequestMapping("/Main")
@Controller
public class MainController {
    @Autowired
    IntroduceService introduceService;

    @RequestMapping(value = "getScenery",method = RequestMethod.POST)
    @ResponseBody
    public String getScenery(){
        return introduceService.getScenery();
    }

    @RequestMapping("getPrice")
    @ResponseBody
    public String getPrice(){
        return introduceService.getPrice();
    }
}
